package com.eol.common.constants;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 2019/10/30
 * Time: 7:03 PM
 * Description: BaseCommonConstants
 */
public class BaseCommonConstants {
    //环境
    public static final String TEST = "test";  //测试环境
    public static final String DEV = "dev";  //本地开发环境
    public static final String PROD = "prod";  //生产环境

    //    BaseContextHandler
    public static final String ACCESS_TOKEN = "AUTH-TOKEN";  //web端token
    public static final String TOKEN_DATA = "tokenData";
    public static final String APP_VERSION = "_v";  //APP端传来的version

    //jwt常量
    public static final String JWT_KEY_USER_ID = "b";
    public static final String JWT_KEY_PHONE_NUM = "p";
    public static final String JWT_KEY_CREATED = "t";
    public static final String JWT_KEY_REFRESH = "v";

    //admin分页时有关的常量
    public static final String PAGE_HELP_PAGE = "0"; //默认页数
    public static final String PAGE_HELP_LIMIT = "10";  //默认条数


    //web分页时有关的常量
    public static final String WEB_PAGE_HELP_PAGE = "1"; //默认页数
    public static final String WEB_PAGE_HELP_LIMIT = "5";  //默认条数

    //重置邮箱验证码前缀
    public static final String RESET_EMAIL = "RESET_EMAIL:";  //重置邮箱验证码前缀

    //支付渠道类型
    public final static String PAY_CHANNEL_WX_JSAPI = "JSAPI";                // 微信公众号支付
    public final static String PAY_CHANNEL_WX_MWEB = "MWEB";                    // 微信H5支付
    public final static String PAY_CHANNEL_ALIPAY_WAP = "ALIPAY_WAP";            // 支付宝WAP支付

    //测试支付默认金额
    public final static String TEST_PAY_AMOUNT = "0.02";            // 默认支付2分钱
    public final static String TEST_REFUND_AMOUNT = "0.01";                // 默认退款1分钱

    //支付渠道
    public final static String CHANNEL_NAME_WX = "wx";                // 渠道名称:微信
    public final static String CHANNEL_NAME_ALIPAY = "ali";        // 渠道名称:支付宝

    // 1：用户标签 2：资讯标签 3：职位标签
    public static final Integer LABEL_TYPE1 = 1;
    public static final Integer LABEL_TYPE2 = 2;
    public static final Integer LABEL_TYPE3 = 3;

    // 类型  1：自建 2：跳转链接
    public static final Integer NEWS_TYPE1 = 1;
    public static final Integer NEWS_TYPE2 = 2;
}
